﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shine.Util
{
    #region 进度条
    /// <summary>
    /// 设置进度条总数委托
    /// </summary>
    /// <param name="total">总数</param>
    public delegate void SetProgressTotalEvent(int total);

    /// <summary>
    /// 设置进度条当前的值
    /// </summary>
    /// <param name="value">当前的值</param>
    public delegate void SetProgressValueEvent(int value);

    /// <summary>
    /// 使进度条按照设置的递增量递增一个单位
    /// </summary>
    public delegate void SetProgressStepEvent();

    /// <summary>
    /// 使进度条递增到指定的值处
    /// </summary>
    /// <param name="value">要递增到的值</param>
    public delegate void SetProgressStepToEvent(int value);
    #endregion
    
    /// <summary>
    /// 无參委托
    /// </summary>
    public delegate void NullParameter();

    /// <summary>
    /// 消息委托
    /// </summary>
    /// <param name="msg"></param>
    public delegate void MessageDelegate(string msg);

}
